/**
 * @file worker.h
 * @brief Header file per worker
 *  Created on: Jan 12, 2010
 *      Author: Marco Luisi
 */

#ifndef WORKER_H_
#define WORKER_H_

#include "nmat.h"
#include "util.h"
#include "fileio.h"
#include "nmcom.h"
#include "mat_funs.h"
#include <dirent.h> //controllare


void init();
int serve();
int new();
void print(char*);//che richiama l'altra funz in base al nome
void list();
int save(char*);
int load();
int clientexit();
int TRASP();


int add(message_t*);


int matToFile(matrix_t m);
void printMat(matrix_t*);



void term_handler(int);


#endif /* WORKER_H_ */
